<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>订单页</title>
	<link rel="stylesheet" type="text/less" href="__TEMPLATE__/style/main.less" />
	<link rel="stylesheet" href="__TEMPLATE__/style/bootstrap.min.css" />
	<link rel="stylesheet" href="__TEMPLATE__/style/font-awesome.min.css">
	<script type="text/javascript" src="__TEMPLATE__/js/less-1.7.5.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/main.js"></script>
	<hdjs>
</head>
<body>
<!-- 头部开始 -->
<div id="top" style="margin-bottom: 120px;">
	<div class="nav">
		<div class="left">
			<a href="">小米网</a>
			<span>|</span>
			<a href="">MIUI</a>
			<span>|</span>
			<a href="">米聊</a>
			<span>|</span>
			<a href="">游戏</a>
			<span>|</span>
			<a href="">多看阅读</a>
			<span>|</span>
			<a href="">云服务</a>
			<span>|</span>
			<a href="">小米网移动版</a>
		</div>
		<div class="right">
			<if value='$_SESSION["u_username"]'>
				<a href="javascript:;">欢迎回来!</a>
				<span></span>
				<a href="{|U:'Login/index'}"><?php echo $_SESSION["u_username"] ?></a>
				<span>|</span>
				<a href="{|U:'Menber/index'}">个人中心</a>
				<span>|</span>
				<a href="{|U:'Login/out'}">退出</a>
			
			<else/>
				<a href="{|U:'Login/index'}">登录</a>
				<span>|</span>
				<a href="{|U:'Register/index'}">注册</a>
			</if>
		</div>
	</div>
	<div class="logo">
		<a href="__ROOT__"><img src="__TEMPLATE__/images/logo.png" alt="" /></a>
	</div>
</div>
<!-- 头部结束 -->
<!-- 购物车开始 -->
<div id="order" >
	<form action="{|U:'Order/add'}" method="post">
		<div class="list">
			<h2>收货地址</h2>
			<div class="check">
				<div class="addr">
					<h3>马志斌</h3>
					<p>15111076943</p>
					<p>湖南 长沙市 雨花区万家丽路西子一间A栋13楼1308(410000)</p>
					<p class="is_addr" value=''></p>
				</div>
				<div class="addr">
					<a href="{|U:'Menber/addr'}">修改收货地址</a>
				</div>
			</div>
		</div>
		<div class="list">
			<h2>支付方式</h2>
			<div class="check">
				<ul class="check">
					<li>
						<input type="radio" value="0" name="pay_type" checked="">
						<p>在线支付</p>
					</li>
					<li>
						<input type="radio" value="1" name="pay_type" checked="">
						<p>货到付款</p>
					</li>
					<p class="is_pay" value=''></p>	
				</ul>
				
			</div>
		</div>
		<div class="list">
			<h2>发票信息</h2>
				<ul class="check">
					<li>
						<input type="radio" value="0" name="is_bill" checked="">
						<p>不开发票</p>
					</li>
					<li>
						<input type="radio" value="1" name="is_bill"checked="">
						<p>需要发票</p>
					</li>
					<p class="is_bill" value=''></p>	
				</ul>	
		</div>
		<div class="list">
			<h2>确认商品</h2>
			<table>
				<tr>
					<td width="800px" style="text-align:left;">商品</td>
					<td width="100px">单价</td>
					<td width="200px">数量</td>
					<td width="100px">小计</td>
				</tr>
				<foreach from="$cartData[goods]" key="$k" value="$v">
					<tr>
						<td style="text-align:left;">
							<div class="goods">
								<img src="__ROOT__/{$v['options']['pic']}" alt="" width="50" />
								<h3>{$v.name}</h3>
								<p></p>
							</div>
						</td>
						<td>{$v.price}元</td>
						<td>
							<div style="margin: 0 auto;width:155px;">
								<p>{$v.num}</p>
							</div>
						</td>
						<td class="{$k}">{$v.total}元</td>
					</tr>
				</foreach>
			</table>
		</div>
		<div class="list">
			<h2>备注说明</h2>
			<textarea name="remark" ></textarea>	
		</div>
		<div class="total_out">
			<p class="total">商品总计: <span>{$cartData.total}元</span></p>
			<p class="total">商品件数：<span>{$cartData.total_rows}件</span></p>
		</div>
		<div class="total_out">
			<p class="next">
				<a class="continue" href="{|U:'Cart/index'}">返回购物车</a>
				<input type="button" class="btn"  value="立即下单" />
			</p>
		</div>
	</form>
</div>
<!-- 购物车结束 -->
<!-- // 服务样式开始 -->
<include file="__TEMPLATE__/footer.html"/>
<!-- // 服务样式结束 -->
</body>
</html>